package com.bdqn.entity;

import java.sql.Timestamp;

/**
 * Advice entity. @author MyEclipse Persistence Tools
 */

public class Advice implements java.io.Serializable {

	// Fields

	private Integer adviceId;
	private User userBySolverId;
	private User userByUserId;
	private String adviceContent;
	private Timestamp putInTime;
	private Integer isSolved;
	private Timestamp solvedTime;

	// Constructors

	/** default constructor */
	public Advice() {
	}

	/** minimal constructor */
	public Advice(User userByUserId, String adviceContent, Timestamp putInTime,
			Integer isSolved) {
		this.userByUserId = userByUserId;
		this.adviceContent = adviceContent;
		this.putInTime = putInTime;
		this.isSolved = isSolved;
	}

	/** full constructor */
	public Advice(User userBySolverId, User userByUserId, String adviceContent,
			Timestamp putInTime, Integer isSolved, Timestamp solvedTime) {
		this.userBySolverId = userBySolverId;
		this.userByUserId = userByUserId;
		this.adviceContent = adviceContent;
		this.putInTime = putInTime;
		this.isSolved = isSolved;
		this.solvedTime = solvedTime;
	}

	// Property accessors

	public Integer getAdviceId() {
		return this.adviceId;
	}

	public void setAdviceId(Integer adviceId) {
		this.adviceId = adviceId;
	}

	public User getUserBySolverId() {
		return this.userBySolverId;
	}

	public void setUserBySolverId(User userBySolverId) {
		this.userBySolverId = userBySolverId;
	}

	public User getUserByUserId() {
		return this.userByUserId;
	}

	public void setUserByUserId(User userByUserId) {
		this.userByUserId = userByUserId;
	}

	public String getAdviceContent() {
		return this.adviceContent;
	}

	public void setAdviceContent(String adviceContent) {
		this.adviceContent = adviceContent;
	}

	public Timestamp getPutInTime() {
		return this.putInTime;
	}

	public void setPutInTime(Timestamp putInTime) {
		this.putInTime = putInTime;
	}

	public Integer getIsSolved() {
		return this.isSolved;
	}

	public void setIsSolved(Integer isSolved) {
		this.isSolved = isSolved;
	}

	public Timestamp getSolvedTime() {
		return this.solvedTime;
	}

	public void setSolvedTime(Timestamp solvedTime) {
		this.solvedTime = solvedTime;
	}

}